<?php if (!defined('THINK_PATH')) exit();?> 

 <!DOCTYPE html>

<html lang="en">

	<head>
	
		<!-- Basic -->
    	<meta charset="UTF-8" />

		<title>Dashboard | Fire - Admin Template</title>
	 
		<!-- Mobile Metas -->
	    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		
		<!-- Import google fonts -->
          
        
		<!-- Favicon and touch icons -->
		<link rel="shortcut icon" href="/tp/Public/Admin/assets/ico/favicon.ico" type="image/x-icon" />
		<link rel="apple-touch-icon" href="/tp/Public/Admin/assets/ico/apple-touch-icon.png" />
		<link rel="apple-touch-icon" sizes="57x57" href="/tp/Public/Admin/assets/ico/apple-touch-icon-57x57.png" />
		<link rel="apple-touch-icon" sizes="72x72" href="/tp/Public/Admin/assets/ico/apple-touch-icon-72x72.png" />
		<link rel="apple-touch-icon" sizes="76x76" href="/tp/Public/Admin/assets/ico/apple-touch-icon-76x76.png" />
		<link rel="apple-touch-icon" sizes="114x114" href="/tp/Public/Admin/assets/ico/apple-touch-icon-114x114.png" />
		<link rel="apple-touch-icon" sizes="120x120" href="/tp/Public/Admin/assets/ico/apple-touch-icon-120x120.png" />
		<link rel="apple-touch-icon" sizes="144x144" href="/tp/Public/Admin/assets/ico/apple-touch-icon-144x144.png" />
		<link rel="apple-touch-icon" sizes="152x152" href="/tp/Public/Admin/assets/ico/apple-touch-icon-152x152.png" />
		
	    <!-- start: CSS file-->
		
		<!-- Vendor CSS-->
		<link href="/tp/Public/Admin/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/vendor/css/pace.preloader.css" rel="stylesheet" />
		
		<!-- Plugins CSS-->
		<link href="/tp/Public/Admin/assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet" />	
		<link href="/tp/Public/Admin/assets/plugins/scrollbar/css/mCustomScrollbar.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/plugins/bootkit/css/bootkit.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/plugins/magnific-popup/css/magnific-popup.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/plugins/jqvmap/jqvmap.css" rel="stylesheet" />
		
		<!-- Theme CSS -->
		<link href="/tp/Public/Admin/assets/css/jquery.mmenu.css" rel="stylesheet" />
		
		<!-- Page CSS -->		
		<link href="/tp/Public/Admin/assets/css/style.css" rel="stylesheet" />
		<link href="/tp/Public/Admin/assets/css/add-ons.min.css" rel="stylesheet" />
		
		<!-- end: CSS file-->	
	    
		
		<!-- Head Libs -->
		<script src="/tp/Public/Admin/assets/plugins/modernizr/js/modernizr.js"></script>
		
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->		
		
	</head>
	
	<body  >
	
		<!-- Start: Header -->
		<div class="navbar" role="navigation">
			<div class="container-fluid container-nav">
				<!-- Navbar Action -->
				<ul class="nav navbar-nav navbar-actions navbar-left">
					<li class="visible-md visible-lg"><a href="#" id="main-menu-toggle"><i class="fa fa-th-large"></i></a></li>
					<li class="visible-xs visible-sm"><a href="#" id="sidebar-menu"><i class="fa fa-navicon"></i></a></li>			
				</ul>
				<!-- Navbar Left -->
				<div class="navbar-left">
					<!-- Search Form -->					
					<form class="search navbar-form">
						<div class="input-group input-search">
							<input type="text" class="form-control bk-radius" name="q" id="q" placeholder="Search...">
							<span class="input-group-btn">
								<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
							</span>
						</div>						
					</form>
				</div>
				<!-- Navbar Right -->
				<div class="navbar-right">					
					<!-- Notifications -->
					<ul class="notifications hidden-xs">						
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-tasks"></i>
								<span class="badge">10</span>
							</a>
							<ul class="dropdown-menu update-menu" role="menu">
								<li><a href="#"><i class="fa fa-database bk-fg-primary"></i> Database </a></li>
								<li><a href="#"><i class="fa fa-bar-chart-o bk-fg-primary"></i> Connection </a></li>
								<li><a href="#"><i class="fa fa-bell bk-fg-primary"></i> Notification </a></li>
								<li><a href="#"><i class="fa fa-envelope bk-fg-primary"></i> Message </a></li>
								<li><a href="#"><i class="fa fa-flash bk-fg-primary"></i> Traffic </a></li>
								<li><a href="#"><i class="fa fa-credit-card bk-fg-primary"></i> Invoices </a></li>
								<li><a href="#"><i class="fa fa-dollar bk-fg-primary"></i> Finances </a></li>
								<li><a href="#"><i class="fa fa-thumbs-o-up bk-fg-primary"></i> Orders </a></li>
								<li><a href="#"><i class="fa fa-folder bk-fg-primary"></i> Directories </a></li>
								<li><a href="#"><i class="fa fa-users bk-fg-primary"></i> Users </a></li>		
							</ul>
						</li>
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-envelope"></i>
								<span class="badge">5</span>
							</a>
							<ul class="dropdown-menu">
								<li class="dropdown-menu-header">
									<strong>Messages</strong>
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="/tp/Public/Admin/assets/img/avatar1.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>1 minute ago</small></span>							
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="/tp/Public/Admin/assets/img/avatar2.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>3 minute ago</small></span>								
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="/tp/Public/Admin/assets/img/avatar3.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>4 minute ago</small></span>								
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="/tp/Public/Admin/assets/img/avatar4.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>30 minute ago</small></span>
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="/tp/Public/Admin/assets/img/avatar5.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>1 hours ago</small></span>
									</a>
								</li>						
								<li class="dropdown-menu-footer text-center">
									<a href="page-inbox.html">View all messages</a>
								</li>	
							</ul>
						</li>
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-bell"></i>
								<span class="badge">3</span>
							</a>
							<ul class="dropdown-menu list-group">
								<li class="dropdown-menu-header">
									<strong>Notifications</strong>
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>
								</li>
								<li class="list-item">
									<a href="page-inbox.html">
										<div class="pull-left">
										   <i class="fa fa-envelope-o bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>Unread Message</div>
											<h6>You have 10 unread message</h6>
										</div>								
									</a>
								</li>
								<li class="list-item">
									<a href="#">
										<div class="pull-left">
										   <i class="fa fa-cogs bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>New Settings</div>
											<h6>There are new settings available</h6>
										</div>								
									</a>
								</li>
								<li class="list-item">
									<a href="#">
										<div class="pull-left">
										   <i class="fa fa-fire bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>Update</div>
											<h6>There are new updates available</h6>
										</div>								
									</a>
								</li>
								<li class="list-item-last">
									<a href="#">
									  <h6>Unread notifications</h6>
									  <span class="badge">15</span>
									</a>
								</li>
							</ul>
						</li>
					</ul>
					<!-- End Notifications -->					
					<!-- Userbox -->
					<div class="userbox">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<figure class="profile-picture hidden-xs">
								<img src="/tp/Public/Admin/assets/img/avatar.jpg" class="img-circle" alt="" />
							</figure>
							<div class="profile-info">
								<span class="name"><?php echo ($_SESSION['realname']); ?></span>
								<span class="role"><i class="fa fa-circle bk-fg-success"></i> 不在线</span>
							</div>			
							<i class="fa custom-caret"></i>
						</a>
						<div class="dropdown-menu">
							<ul class="list-unstyled">
								<li class="dropdown-menu-header bk-bg-white bk-margin-top-15">						
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>							
								</li>	
								<li>
									<a href="page-profile.html"><i class="fa fa-user"></i> 个人中心</a>
								</li>
																
								<li>
									<a href="<?php echo U('Admin/session');?>"><i class="fa fa-power-off"></i>注销</a>
								</li>
							</ul>
						</div>						
					</div>
					<!-- End Userbox -->
				</div>
				<!-- End Navbar Right -->
			</div>		
		</div>
		<!-- End: Header -->
        <div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >免费网站模板</a></div>
		
		<!-- Start: Content -->
		<div class="container-fluid content">	
			<div class="row">
			
				<!-- Sidebar -->
				<div class="sidebar">
					<div class="sidebar-collapse">
						<!-- Sidebar Header Logo-->
						<div class="sidebar-header">
							<img src="/tp/Public/Admin/assets/img/logo.png" class="img-responsive" alt="" />
						</div>
						<!-- Sidebar Menu-->
						<div class="sidebar-menu">						
							<nav id="menu" class="nav-main" role="navigation">
								<ul class="nav nav-sidebar">
									<div class="panel-body text-center">								
										<div class="flag">
											<img src="/tp/Public/Admin/assets/img/flags/USA.png" class="img-flags" alt="" />
										</div>
									</div>
									<li class="active">
										<a href="index.html">
											<i class="fa fa-laptop" aria-hidden="true"></i><span>Dashboard</span>
										</a>
									</li>
									 
									
									<?php if(is_array($datas)): foreach($datas as $key=>$v): ?><li class="nav-parent">
										<a>
											<i class="fa <?php echo ($v['ico']); ?>" aria-hidden="true"></i><span><?php echo ($v['name']); ?></span>
										</a>
										

										<?php if(is_array($datass)): foreach($datass as $key=>$ve): if(($v['id']) == $ve['pid']): ?><ul class="nav nav-children">
				<li><a href="<?php echo U($ve['url']);?>"><span class="text fa <?php echo ($ve['ico']); ?>"><?php echo ($ve["name"]); ?></span></a></li>
																					
										</ul><?php endif; endforeach; endif; ?>
									</li><?php endforeach; endif; ?>
										 
								</ul>
							</nav>
						</div>
						<!-- End Sidebar Menu-->
					</div>
					<!-- Sidebar Footer-->
					<div class="sidebar-footer">					
						 				
					</div>
					<!-- End Sidebar Footer-->
				</div>
				<!-- End Sidebar -->
						
				<!-- Main Page -->
				<div class="main ">
					<!-- Page Header -->
					<div class="page-header">
						<div class="pull-left">
							<ol class="breadcrumb visible-sm visible-md visible-lg">								
								<li><a href="index.html"><i class="icon fa fa-home"></i>Home</a></li>
								<li class="active"><i class="fa fa-laptop"></i>Dashboard</li>
							</ol>						
						</div>
						<div class="pull-right">
							<h2>Dashboard</h2>
						</div>					
					</div>
					<!-- End Page Header -->
					
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
							<div class="panel panel-default bk-bg-white">
								<div class="panel-heading bk-bg-white">
									<h6><i class="fa fa-table red"></i><span class="break"></span>后台列表</h6>							
									
								</div>
								<div class="panel-body">
									<div class="row">
										
											
												<button class="btn btn-info" id="addToTable">列表添加 <i class="fa fa-plus"></i></button>
											</div>
										</div>
									</div>
									<div id="datatable-editable_wrapper" class="dataTables_wrapper no-footer"></div></div><div class="table-responsive"><table id="datatable-editable" class="table table-bordered table-striped mb-none dataTable no-footer" role="grid" aria-describedby="datatable-editable_info">
										<thead>
											<tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 265px;" aria-sort="ascending" aria-label="Template: activate to sort column ascending">ID</th>
											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 415px;" aria-label="Browser: activate to sort column ascending">模版名称</th>

											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 534px;" aria-label="Platform(s): activate to sort column ascending">链接</th>

											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 534px;" aria-label="Platform(s): activate to sort column ascending">是否显示</th>

											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 534px;" aria-label="Platform(s): activate to sort column ascending">图标</th>

											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 534px;" aria-label="Platform(s): activate to sort column ascending">PID</th>
<!-- 
											<th class="sorting" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" style="width: 534px;" aria-label="Platform(s): activate to sort column ascending">操作</th> -->

										</thead>
										<tbody>
											
											
											
											
											
											
											

											
										<tr class="gradeA odd" role="row">

										<?php if(is_array($list)): foreach($list as $key=>$v): ?><!-- 循环出数据 -->

												<td class="sorting_1"><?php echo ($v['id']); ?></td>
												<td><?php echo ($v['name']); ?></td><!-- 模版名称 -->
												<td><?php echo ($v['url']); ?></td><!-- 链接 -->
												<td><?php echo ($v['status']==1?'是':'是'); ?></td><!-- 是否显示 -->
												<td><i class="fa <?php echo ($v['ico']); ?>"></i></td><!-- 电话 -->
												
												<td><?php echo ($v['pid']); ?></td>
												<!-- <td><button type="button" class="bk-margin-5 btn btn-default btn-circle"><i class="fa <?php echo ($v['status']==1?'fa-times':'fa-check'); ?>"> </i></button></td> --><!-- 状态 --> 
												<!-- <td class="actions">
													<a class="hidden on-editing save-row" href="#"><i class="fa fa-save"></i></a>
													<a class="hidden on-editing cancel-row" href="#"><i class="fa fa-times"></i></a>
													<a class="on-default edit-row" href="#"><i class="fa fa-pencil"></i></a>
													<a class="on-default remove-row" href="#"><i class="fa fa-trash-o"> --></i></a>
												</td>
											</tr><?php endforeach; endif; ?>
										</tbody>
									</table></div>
									
									<?php echo ($page); ?>
								</div>
							</div>
						</div>
						
						<script src="/tp/Public/Admin/assets/vendor/js/jquery.min.js"></script>
		<script src="/tp/Public/Admin/assets/vendor/js/jquery-2.1.1.min.js"></script>
		<script src="/tp/Public/Admin/assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="/tp/Public/Admin/assets/vendor/bootstrap/js/bootstrap.min.js"></script>
		<script src="/tp/Public/Admin/assets/vendor/skycons/js/skycons.js"></script>	
		<script src="/tp/Public/Admin/assets/vendor/js/pace.min.js"></script>
		
		<!-- Plugins JS-->
		<script src="/tp/Public/Admin/assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/touchpunch/js/jquery.ui.touch-punch.min.js"></script>		
		<script src="/tp/Public/Admin/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/bootstrap-tagsinput/js/bootstrap-tagsinput.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/maskedinput/js/jquery.maskedinput.js"></script>
		<script src="/tp/Public/Admin/assets/plugins/sparkline/js/jquery.sparkline.min.js"></script>
		
		<!-- Theme JS -->		
		<script src="/tp/Public/Admin/assets/js/jquery.mmenu.min.js"></script>
		<script src="/tp/Public/Admin/assets/js/core.min.js"></script>
		
		<!-- Pages JS -->
		<script src="/tp/Public/Admin/assets/js/pages/form-elements.js"></script>